/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */


/*
  //////////////////////////////////////////////////
    HOMEPAGE
  //////////////////////////////////////////////////
*/

* {
  font-family: Arial, Helvetica, sans-serif;
}

#lockup > a {
  position: relative;
  display: block;
  width: 200px;
  height: 90px;
}

#logo_image {
  position: absolute;
  top: 0;
}

#p5_logo {
  position: absolute;
}

#menu.top_menu, #menu {
    list-style: none;
    font-family: "AvenirNextLTW01-Medium";
    width:100%;
    margin: 0 0 1em 0;
    padding: 0;
    height: 100%;
    font-size: 1.3em;
}

#menu.top_menu li {
    display: inline;
}

#home-sketch {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
}

#credits {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 1em;
    font-size: 0.75em;
}

.focus {
    border: 1px solid #ED225D;
    padding: 0.4em;
    margin: 4em 1.75em 0 0;
    padding: 0.5em 1em 0em 1em;
    color: #333 !important;
}

.focus_blue {
    border: 1px solid #2D7BB6;
    padding: 0.4em;
    margin: 4em 1.75em 0 0;
    padding: 0.5em 1em 0em 1em;
    color: #333 !important;
}

/*
  //////////////////////////////////////////////////
    DOWNLOAD PAGE
  //////////////////////////////////////////////////
*/
.download_box {
    border: 1px solid #ED225D;
    padding: 0.4em;
    margin: 1em 1.75em 0 0;
    width: 18.65em;
    color: #333 !important;
    height:7.45em;
    position: relative;
}

.download_box:hover {
    border: 1px solid #ED225D;
    background: #ED225D;
    color: #FFF !important;
}

.download_box.half_box {
    width:8.45em;
    float: left;
}

.download_box h4 {
    font-size: 1em;
    margin: 0;
    padding-bottom: 0.3em;
    border-bottom: 0.09em dashed;
    border-bottom-color: #ED225D;
}

.download_box:hover h4 {
    -webkit-text-stroke-width: 0;
    border-bottom-color: #FFF;
}

.download_box p {
    font-size: 0.65em;
    margin: 0;
    position:absolute;
    bottom:1em;
}

.download_box svg {
    height:0.65em;
    width:0.65em;
    position: absolute;
    bottom: 3.5em;
}

.download_box:hover svg {
    fill: white;
}

.download_box h4 + p {display: block;}

#download-page .link_group {
    width: 100%;
    margin-bottom: 3em;
}

#download-page p {
    margin-bottom: 0;
}

/*
  //////////////////////////////////////////////////
    GET STARTED
  //////////////////////////////////////////////////
*/
/*.tutorial-btn {
    background: white;
    color: black !important;
    padding: 7px;
    width: 500px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tutorial-btn:hover {
    background: #AFAFAF;
    color: white !important;
    padding: 7px;
    width: 500px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}*/

/*
  //////////////////////////////////////////////////
    REFERENCE
  //////////////////////////////////////////////////
*/

section#reference h2 {
    float:left;
}

/* EXAMPLES IN REF */

.example-content .edit_space,
.example-content pre {
    position: absolute !important;
    top: 0.5em !important;
    left: 120px !important;
    padding-top: 0 !important;
    border: none !important;
}

pre.norender {
    left: 0px !important;
    margin-left: 0 !important;
}

.example-content pre {

    margin-top: 0 !important;
    width: 30.5em !important;
}

.example-content .edit_space {
    margin: -0.5em 0 0 -0.5em !important;
}

.example_container .edit_space {
    position: absolute !important;
    top: 0;
    left: 0;
}

.example_container pre {
    top: 0;
    left: 0;
    width: 100%;
}
.example div {
    position: relative;
}

.example_container button {
    position: absolute;
    top: 0.25em;
}

.edit_space button {
    font-family: "AvenirNextLTW01-Medium";
    font-size: 1em;
    color: #ccc;
    border: 1px solid rgba(200, 200, 200, .15);
    background: transparent;
    outline: none;
}

.example_container button:hover, .example_container.editing button {
    color: #2D7BB6;
    border-color: rgba(45,123,182, .25);
}

.edit_button {
    left: 24.5em;
}

.reset_button {
    left: 27.5em;
}

.display_button {
  margin-bottom: 2em;
  font-family: "AvenirNextLTW01-Medium";
  font-size: 1em;
  color: #2D7BB6;
  border: 1px solid rgba(45,123,182, .25);
  background: transparent;
  outline: none;
}

.example_container {
    width: 36em;
    border-top: 0.09em dashed;
    border-top-color: #333;
    padding-top: 0.5em;
    margin-top: 1em;
}


#search {
    margin: 0.5em 0 0 0;
}

#search input, #search input[type="password"], #search input[type="search"]
 {
    border: 1px solid rgba(200, 200, 200, .15);
    font-family: "AvenirNextLTW01-Medium";
}

#search ::-webkit-input-placeholder,
#search .twitter-typeahead .tt-hint {
   color: #ccc;
}

:-moz-placeholder { /* Firefox 18- */
   color: #ccc;
}

::-moz-placeholder {  /* Firefox 19+ */
   color: #ccc;
}

:-ms-input-placeholder {
   color: #ccc;
}

#search input:focus {
    color:#ED225D;
    outline-color:#3796D1;
    outline-width: 1px;
    outline-style: solid;
}

#search .twitter-typeahead .tt-dropdown-menu {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    font-size: 1em;
    line-height: 1.4em;
}

#search .twitter-typeahead .tt-suggestion.tt-cursor {
    color: #333;
    background-color: #eee;
}
#search .twitter-typeahead .tt-suggestion p {
    margin: 0;
}
#search .twitter-typeahead .tt-suggestion p .small {
    font-size: 12px;
    color: #666;
}



.item {
    display:block;
    width:100%;
}

.description {
    clear:both;
    display:block;
    width:100%;

}

.item-wrapper, .list-wrapper {
    float: left;
}

#reference .core, #reference .addon {
    color: #704F21;
}

html,
button,
input,
select {
    color: #222;
}

textarea {
    line-height: 1.45em;
    padding: 0.5em 1em 0.5em 1em;
    border:none;
}

textarea:focus {
    outline: none;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

td {
    vertical-align: top;
    font-size: 1.2em;
    padding-bottom: 0.75em;
}

td:first-child {
    padding-right: 0.5em;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}
img.med_left  {
  width: 300px;
  float: left;
  }
  img.med_right  {
    width: 300px;
    float: right;
    }
img.small_left  {
  width: 200px;
  float: left;
  }
  img.smaller_left  {
    width: 140px;
    float: left;
    }
img.small_right  {
  width: 200px;
  float: right;
  }
  img.smaller_right  {
    width: 140px;
    float: right;
    }
    img.small_center  {
      width: 200px;
    margin-left:250px;
      }
img.small  {
  width: 160px;

  }
  img.med {

    width: 400px;

  

    }
  img.med_center  {

    width: 400px;

     margin-left: 150px;

    }

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/*
  //////////////////////////////////////////////////
    CONTRIBUTORS FORM
  //////////////////////////////////////////////////
*/
.contribute-form {
  font-family:"AvenirNextLTW01-Medium";

}
.contribute-form input, textarea{
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px;
  font-size: 14px;


}
.contribute-form textarea{
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px;
  font-size: 14px;
  width: 350px;
}

.contribute-form #form-help{
  font-size: small;
  color: #ABABAB;
}

.contribute-form #required-asterisk{
  color: #EC245E;
}

.contribute-form #input-title{
  font-size: medium;
  margin-top: 15px;
}


.contribute-form #hide-message{
  display: none;
}

.contribute-button {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
  margin-bottom: 0;
  font-size: medium;
  border: 1px solid transparent;
}

.contribution-info li{
  margin-bottom: 2px;
  margin-left: 20px;
  font-size: medium;
}

.contribution-info ul{
  margin-bottom: 15px;

}

/*
  //////////////////////////////////////////////////
    Contributors
  //////////////////////////////////////////////////
*/

#contribute-container{



}
#contribute-item {
  font-size: .75em;
  text-align: left;
  display: inline-block;
  width: 320px;
  height: 250px;
  float: left;
  border: 1px solid #ED225D;
  margin: 0 25px 25px 0;
  position: relative;

}

.contribute-item-container{
  position: absolute;
  z-index: 20;
  margin: 0;
  padding: 10px;
}


/*
#contribute-item-background0{
  display:none;
}
#contribute-item-background1{
  display:none;
}
#contribute-item-background2{
  display:none;
}
#contribute-item-background3{
  display:none;
}*/

/*#contribute-item-background0:hover{
display: block;
}
#contribute-item-background1:hover{
  display:block;
}
#contribute-item-background2:hover{
  display:block;
}
#contribute-item-background3:hover{
  display:block;
}*/

#container {/*
    width: 100px;*/
    height: 100px;
    position: relative;
}


#navi,
#infoi {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#infoi {
    z-index: 10;
}




/*#contribute-item:hover {
  background-color:  rgba(190, 190, 190, 0.5);
}*/




h3.contribute-title{
  font-size: 1.3em;
  margin: 0 0 27px 0;
  padding-bottom: 0.3em;
  border-bottom: 0.09em dashed;
  border-bottom-color: #ED225D;

}

/*
  //////////////////////////////////////////////////
    LIBRARIES / LEARN
  //////////////////////////////////////////////////
*/
.label {
    position: relative;
}
.label h4 {
    color: white;
    position: absolute;
    top: 0;
    margin: 1em;
}

.label:hover h4 {
    color:#ED225D;
}


#exampleDisplay, #exampleFrame, #exampleEditor {
    width: 36em;
    border: none;
}

#popupExampleFrame {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  /*display: none;*/
  border: none;
}

/*#popupExampleFrame #exampleFrame {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}*/

#exampleDisplay button {
    color: #2D7BB6;
    border-color: rgba(45,123,182, .25);
    float: right;
    margin: 0.5em 0 0 0.5em;
    background: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: 0;
    z-index: 2;
}

#exampleDisplay .edit_button {
    left: 29em;
}

#exampleDisplay .reset_button {
    left: 32em;
}

#exampleDisplay .edit_space {
    position: relative;
}

#exampleFrame {
    height: 22em;
}

#exampleEditor {
    height: 500em;
    width: 710px;
    overflow: hidden;
    margin-top: 0.5em;
    color: #222;
    font-family:
      inconsolatamedium,
      Consolas,
      Monaco,
      'Andale Mono',
      monospace;
    font-size: 1em !important;
    background-color: #FFF;
    line-height: 1em;
}

.ace_info {
  background-color: #D7E5F5 !important;
}

.ace_warning {
  background-color: #FFD700 !important;
  color: #ffffff !important;
}

.ace_error {
  background-color: #FF6347 !important;
  color: #ffffff !important;
}

/* property, tag, boolean,
   number, function-name, constant,
   symbol */
.ace_numeric,
.ace_tag {
    color: #DC3787 !important; /* not p5 pink, but related */
}

/* atrule, attr-value, keyword,
   class-name */
.ace_type,
.ace_class,
.ace_attribute-name {
    color: #704F21 !important; /* darker brown */
}

/* selector, attr-name,
function, builtin */
.ace_function,
.ace_keyword,
.ace_support {
    color: #00A1D3 !important; /* not p5 blue, but related */
}

/* comment, block-comment, prolog,
   doctype, cdata */
.ace_comment {
    color: #A0A0A0 !important; /* light gray */
}

/* operator, entity, url,
variable */
.ace_string {
  color: #a67f59 !important; /* og coy a67f59 a light brown */
}

.ace_operator {
    color: #333 !important;
}

/* regex, important */
.ace_regexp {
  color: #e90 !important; /* og coy e90 orange */
}


.ace-gutter {
    color: #333 !important;
}

.ace-gutter-layer {
    color: #333 !important;
}

.ace_folding-enabled {
    width: 10px !important;
    color: #333 !important;
}

.ace_gutter-cell {
  background-image: none !important;
  padding-left: 10px !important;
  overflow: hidden !important;
  background-color: #AFAFAF !important;
}

.ace_content {
    padding: 0em 0.5em !important;
}

.attribution {
    background-color: #eee;
    font-size: 15px;
    padding: 10px;
    margin:30px 0px 30px 0px;
}


/*
  //////////////////////////////////////////////////
    GALLERY
  //////////////////////////////////////////////////
*/
.gallery-item {
    font-size: .75em;
    text-align: center;
    display: inline-block;
    margin: 10px;
}

.gallery-item a:hover {
    border: none;
    opacity: .8;
}

.gallery-item p {
    margin: 5px;
}

img.gallery-img {
    width: 200px;
    height: 200px;
}


.gallery-source {
    color: #AFAFAF;
    font-size: 1em;
    margin: 0px !important;
}

/*
  //////////////////////////////////////////////////
    COMMUNITY
  //////////////////////////////////////////////////
*/

ul.statement-list {
    margin-left: 45px;
}

.bullets li {
    margin-bottom: 0 !important;
    padding: none !important;
}


/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/*
        font-family:'AvenirNextLTW01-Medium';
*/
    /* while local dev */
    @font-face{
    font-family:"AvenirNextLTW01-Medium";
    // src:url("f/AvenirNextLTW01-Medium.eot?#iefix");
    // src:url("f/AvenirNextLTW01-Medium.eot?#iefix") format("eot"),
    // url("f/AvenirNextLTW01-Medium.woff") format("woff"),
    // url("f/AvenirNextLTW01-Medium.ttf") format("truetype"),
    // url("f/AvenirNextLTW01-Medium.svg#a89d6ad1-a04f-4a8f-b140-e55478dbea80") format("svg");
    font-weight: normal;
    font-style: normal;
    }

    /* always */
    @font-face {
    font-family: 'inconsolatamedium';
    // src: url('f/inconsolata.eot');
    // src: url('f/inconsolata.eot?#iefix') format('embedded-opentype'),
    //      url('f/inconsolata.woff') format('woff'),
    //      url('f/inconsolata.ttf') format('truetype'),
    //      url('f/inconsolata.svg#inconsolatamedium') format('svg');
    font-weight: normal;
    font-style: normal;
    }

/* apply a natural box layout model to all elements */
*, *:before, *:after {
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}

html {
    font-size: 1.25em;
    /* 1.25em ~ 20px if times, 1.0em if body text is avenir  */
}

body {
    margin:0 0.5em; /* this goes away when screens are greater than 600px */
    background-color: #fff;
    font-family: times;
    font-weight: 400;
    line-height: 1.45;
    color: #333;
}

.freeze {
  overflow: hidden;
}

/*
#container {
    z-index: 1;
    background-color: rgba(255,255,255,1);
}
*/


/* menu links  */

#menu li a:link, #menu li a:visited  {
    color: #ED225D;
    /* gray #333;
    og p5 pink #ED225D;
    blue #2D7BB6 (a lighter Processing blue Ã¢â‚¬â€ it's our take on it) */
}

/* body links  */

a:link, a:visited {
    color: #2D7BB6;
    text-decoration: none;
}

a:active, a:hover, #reference a:hover {
    color:#ED225D;
    text-decoration: none;
    padding-bottom: 0.11em;
    border-bottom: 0.11em dashed;
    border-bottom-color: #ED225D;
    transition: border-bottom 30ms linear;
}

a.anchor {
    color: #222 !important;
    outline: none;
}

a.anchor:hover {
    color:#ED225D !important;
}

a.nounderline:hover {
    border: none;
}

.here {
    color:#ED225D !important;
    text-decoration: none;
    padding-bottom: 0.1em;
    border-bottom: transparent;
    border-bottom-color: #ED225D;
}

p {
    margin-top:0.5em;
    margin-bottom: 1.3em;
}

.highlight {background-color: rgba(237,34,93,0.15);}

h1, h2, h3, h4, h5{
  margin: 1.414em 0 0.5em 0;
  font-weight: inherit;
  line-height: 1.2;
  font-family: "AvenirNextLTW01-Medium";
}

h1 {
  font-size: 3.157em;
}

h2 {
    font-size: 2.25em; /* 2.369em  */
    margin: 0.25em 0 0 0;
}

h3 {
    font-size: 1.5em; /* 1.777em */
    margin: 1em 0 0 0;
}

h5 {
    font-size: 1.5em; /* 1.777em */
    margin: 1em 0 0 0;
    border-bottom-style: dashed;
    border-bottom-color: #ED225D;
    padding-bottom:5px;
    margin-bottom:20px;
}

#item h3 {
    margin: 0.777em 0 0 0;
    font-size: 1.444em;
    font-weight: inherit;
    /*line-height: 1.2;*/
    font-family: inconsolatamedium, consolas, monospace;
    color: #00A1D3 !important; /* 2D7BB6, 4A90E2 */
}

/* probably needs to be more specific, like with a class selector, in case there are other links inside #item that are not code (or those exceptions could just be handled with a class of .notcode */
#item a {
    font-family: inconsolatamedium, consolas, monospace;
}

#backlink {
    margin: 1.2em 0.444em 0 0;
    font: 1em AvenirNextLTW01-Medium;
    float:right;
}

#backlink a {
    color:#AFAFAF;
}

#backlink a:hover {
    color:#ED225D;
    border-bottom:none;
}


h4 {
    font-size: 1.33em;
    margin: 1em 0 0 0;
}

h4 + p {display: inline;}


#family a:link, #family a:visited {
    margin: 0.5em;
}

#family a:hover, #family a:active {
    margin: 0.5em;
    border:none;
}

#family {
    position:absolute;
    z-index: 9999;
    top:0;
    left:0;
    /*padding: 0.5em 2em;*/
    width:100%; /* 96, 100% if fixed*/
    border-bottom: 1px solid;
    overflow:none;
    margin:0;
    border-bottom-color: rgba(51,51,51,0.5);
    -webkit-box-shadow: 0px 0px 10px #333;
    -moz-box-shadow: 0px 0px 10px #333;
    box-shadow: 0px 0px 10px #333;
    background-color: rgba(255,255,255,0.85);  /* */
}

#family span {
    margin: 0.5em;
    color:#333 !important;
}

#family p.left {
    float: left;
    margin:0.375em 0 0.375em 2em;
}

#family p.right {
    float: right;
    margin:0.375em 0 0.375em 0;
}

#family form {
    float: right;
    padding:0.375em 0.75em 0.375em 0.75em;
    margin-right: 0.25em;
}

#family form input[type="text"] {
    visibility: hidden;
    width: 0;
    margin: 0;
    color:#333;
    border: 1px solid #3796D1;
    font-family: times !important;
    font-weight: 400;
    font-size: 1em;
}

#family form input[type="submit"] {
    background: url('../img/search.png') center center no-repeat;
    border: none;
    outline: none;
}


.code-snippet {
    margin:0 0 0 1em;
    width: 90%;
    clear:both;
}

.column-span {
    margin:0 0 0 1em;
    padding:0;
    float:left;
}


section {
    padding:0;
    /*
    margin:0 auto;
    clear:both;
    */
}

section p, section li {
    font-size: 1.20em;
}

.spacer {
    clear: both;
}


ul {
    margin:0.5em 0 0 0;
    padding: 0;
    list-style: disc;
    list-style-position: outside;
}

li {
    margin: 0 0 1em 0;
}

section li {
    margin: 0 0 1em 0.04em;
}

ul.nobullet, div.params ul {
    margin:0.5em 0 0 0;
    padding: 0;
    list-style: none;
    list-style-position: outside;
}

div.params ul li {
    margin-left: -0.23em;
}

ul.inside {
    margin:0 0 0 2em;
    padding: 0;
    list-style: disc;
    list-style-position: inside;
}

.image-row img {
    width:48%;
    height:14.3%;
}

.image-row img+img {
    float:right;
    margin-right: 0;
    margin-bottom: 0.25em;
}

img, section div img {
    margin: 0.5em 0.5em 0 0;
    width:100%;
}

p+img {
    margin-top: 0;
}

.video {
    width:100%;
}


#lockup {
    margin:4.25em 1.25em 1.25em 1.25em;
}

#lockup object {
    margin:0;
    padding:0;
    border: none;
}


.logo {
    margin:0;
    padding:0;
    border: none;
    margin-bottom: 0.4em;
    height:4.5em;
    width:9.75em;
}

#lockup p {
    color: #ED225D;
    font: 0.75em "AvenirNextLTW01-Medium";
}

#lockup a:link {
    border: transparent;
    height:4.5em;
    width:9.75em;
}

.caption {
    margin-bottom: 2.5em;

}

.caption span, .caption p  {
    text-align:right;
    font: 0.75em "AvenirNextLTW01-Medium";
    padding-top: 0.25em;
}

footer {
    clear:both;
    border-top: 0.1em dashed;
    border-top-color: #ED225D;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Responsive design
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

/*
    initial responsive,
    if window is over 720 px in width
    put these rules into play
*/

@media (max-width: 719px) {

    #home-sketch-frame {
      display: none;
    }

    #family p.left {
        margin:0.375em 0 0.375em 1em !important;
    }


    .download_box {
      width: 96%;
    }

    .download_box.half_box {
      width: 46%;
      margin-right: 4%;
      float: left;
    }

    #menu {
        list-style: none;
        font-family: "AvenirNextLTW01-Medium";
        width:100%;
        margin: 0 0 1em 0;
        padding: 0;
        height: 100%;
        font-size: 1.3em;
    }

    #contribute-item:first-child {
      margin-left: 0px;
    }


    #menu li {
        display: inline;
    }

    #asterisk-design-element, #separator-design-element {
        display: none;
    }

    pre[class*="language-"] {
        padding: 0.5em 0.5em;
        width: 14em;
    }
    code {
      word-wrap: break-word;
      word-break: break-all;
    }

    #credits, #home-sketch {
        /*display: none;*/
    }


    #credits {
      position: relative !important;
      z-index: 2;
      margin-top: -4em;
      padding: 0 1em 3em 1em;
      font-size: 0.5em;
      float: right;
      width: 100%;
      text-align: right;
    }

    #home-sketch-frame {
      position: absolute;
      top: 0;
      left: 0;
    }

    #exampleDisplay, #exampleFrame, #exampleEditor {
      width: 100%;
    }


    #exampleDisplay .edit_button {
      left: -0.5em;
    }

    #exampleDisplay .reset_button {
      left: 2.5em;
    }

    #exampleEditor {
      margin-top: 3em;
      width: 100%;
    }


    small, .small, footer, #family {
      font-size: 0.5em;
    }
}

@media (min-width: 720px) {
    body {
        margin:0;
    }

    #container {
        margin:2em auto;
        width:49em;
        padding:0;
        height: auto;
        min-height: 100%;
        background-color: rgba(51,51,51,0.0);

    }
    #lockup p {
        padding:0;
        margin:0.5em 0 0 8.5em; /* the 7.5em  */
    }
    section {
        width:36em; /* 36-38 em for about 10-14 words at this size   */
    }

    small, .small, footer, #family {
        font-size: 0.75em;
    }

    footer {
        clear:both;
        /*margin: 4em 0 2em -.75em;*/
        width:48em;
    }

    #menu {
        list-style: none;
        font-family: "AvenirNextLTW01-Medium";
        margin:0 0.75em 0 -1.85em; /* margin-right: 0.75em;  */
        width:7.3em;
        height:100%;
        float:left;
        border-top: transparent;
        border-bottom: transparent;
        height: 14.25em;
        padding:1.25em 0;
        font-size: 0.92em;
        z-index: 100;
    }

    #menu li {
        float:none;
        margin: 0 0 1em 0;
        text-align: right;
    }

    #menu li:last-child {
    /*    margin: 0;*/
    }


    #menu .other-link::after {
        /* content:"\2192";
        margin-right: -0.98em; */
        /*content:" Ã‚Â»";*/
        }

    #menu li:nth-child(11) {
        margin-top:3em;
        padding-top: 0.5em;
        /*border-top: 0.06em solid rgba(51,51,51,0.25);*/
    }


    #home-page .column-span {
            /*margin:0 0.75em 0 -1.85em; /* margin-right: 0.75em;  */
        margin-left:7.7em;
    }


    .left-column  {
        width:48%;
        float: left;
    }

    .right-column {
        width:48%;
        float:right;
        margin-right: 0;
        margin-bottom: 0.25em;
    }


    .column_0, .column_1, .column_2 {
        float: left;
        width: 11.333em;
    }

    .column_0, .column_1 {
        margin-right: 1.0em;
    }


    #collection-list-nav dl,
        .reference-group dl,
        #list .column {
        float: left;
        width:7.68em;
        margin:0 1.75em 0 0;
        font-size: 1em;
    }

    #collection-list-nav dl:nth-child(4),
        .reference-group dl:nth-child(4),
        .reference-group.main-ref-page dl:nth-child(5),
        #list .column.col_3 {
        margin-right:0;
    }


    .reference-group dl:nth-child(n+5) {
     margin-top:1em;
    }


    #collection-list-nav dd,
        .reference-group dd {
        margin:0;
    }



    #collection-list-nav {
        width:100%;
        height:6.75em;
        list-style-type: none;
        font-family: "AvenirNextLTW01-Medium";
        clear:both;
        margin:0 0 0.5em 0;
        padding:0;
        border-bottom: 1px dashed rgba(0,0,0,.2)
    }

    #collection-list {
        margin: 0;
    }

    .group-name.first {
        margin-top: 0 !important;
    }

    .column.group-name {
        margin-bottom: 1em;
    }

    #library-page .group-name:hover {
        color: #ED225D;
    }

    #library-page .group-name {
        margin: 2em 0 0.5em 0;
    }

    #library-page .column {
        margin-top: 1em;
    }

    div.reference-group {
        margin: 1em 0;
        padding: 0 0 0.5em 0;
    }

    div.reference-group:nth-child(1) {
        margin: 0 0 1em 0;
    }

    div.reference-group:nth-child(1) h4 {
        margin-top: 0.5em;
    }

    div.reference-group:nth-child(even) {
        background-color: rgba(69, 142, 209, 0.02);
    }

    div.reference-group:nth-child(even) h4 {
        margin-top: 0.25em;
    }


    #search {
        float:right;
    }
    #search input, #search input[type="password"], #search input[type="search"]
     {
        font-size: 2.25em;
        width:7.70em;
    }

    #search input:focus {
        transition: width 0.65s ease;
        width:9.75em;
    }

    #search .twitter-typeahead .tt-dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.5em;
    max-height: 200px;
    overflow-y: auto;

    font-size: 1em;
    line-height: 1.4em;
    }

    #search .twitter-typeahead .tt-suggestion {
    padding: 3px 20px;
    line-height: 24px;
    cursor: pointer; }

    #search .twitter-typeahead .empty-message {
    padding: 8px 20px 1px 20px;
    font-size: 14px;
    line-height: 24px; }




/* constants for the asterisk */

    #asterisk-design-element {
        position:fixed;
        z-index: -1 !important;
        opacity: 0.6;
    }

/*  variations for asterisks on pages */

    #separator-design-element {
        width: 0.33em;
        height: 0.33em;
        margin: 0 0.09em 0.25em 0.09em;
    }


    #home-page #asterisk-design-element {
        bottom:-8%;
        right:20%;
        height:12em;
        width:12em;
        opacity: 1;
    }

    #learn-page #asterisk-design-element,
    #other-content-types-page #asterisk-design-element {
        bottom:-14%;
        left:-20%;
        height:25em;
        width:25em;
        -webkit-transform:rotate(-1deg);
        -moz-transform:rotate(-1deg);
        -ms-transform:rotate(-1deg);
        -o-transform:rotate(-1deg);
        transform: rotate(-1deg);
    }

    #libraries-page #asterisk-design-element {

        bottom:-19%;
        right:-16%;
        height:28em;
        width:28em;
        -webkit-transform:rotate(2deg);
        -moz-transform:rotate(2deg);
        -ms-transform:rotate(2deg);
        -o-transform:rotate(2deg);
        transform: rotate(2deg);
    }

    #get-started-page #asterisk-design-element,
    #contribute-page #asterisk-design-element {

        top:-30%;
        right:-40%;
        height:44em;
        width:44em;
        -webkit-transform:rotate(9deg);
        -moz-transform:rotate(9deg);
        -ms-transform:rotate(9deg);
        -o-transform:rotate(9deg);
        transform: rotate(9deg);

    }

    #reference-page #asterisk-design-element,
    #download-page #asterisk-design-element
    {
        top:7%;
        left:1%;
        height:10em;
        width:10em;
        -webkit-transform:rotate(-21deg);
        -moz-transform:rotate(-21deg);
        -ms-transform:rotate(-21deg);
        -o-transform:rotate(-21deg);
        transform: rotate(-21deg);
    }

}

/* Style adjustments for high resolution devices (commented out as dpi unit throws unwanted error in inspector)

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

} */

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

iframe {
  border: none;
}